package com.lch;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(8089);
        RpcService rpcService = new RpcServiceImpl();

        while (true){
            final Socket accept = serverSocket.accept();
            new Thread(new HandleService(accept, rpcService)).start();
        }
    }
}
